import { useLoaderData } from 'react-router-dom';

const Dashboard = () => {
  const dashboardData = useLoaderData(); // 获取子页面预加载数据

  return (
    <div style={{ padding: '20px', border: '1px solid #eee' }}>
      <h2>Dashboard (子页面)</h2>
      {/* <p>Statistics: {JSON.stringify(dashboardData)}</p> */}
    </div>
  );
};

export default Dashboard;